feat: add alert types for config mismatch, erasure set health, KMS, and storage capacity#528
Merged
Praveenrajmani merged 1 commit intominio:mainfrom Apr 1, 2026
Merged
Conversation
klauspost
reviewed
Jan 29, 2026
Contributor
klauspost
left a comment
There was a problem hiding this comment.
Some clarification needed.
5a93af7 to
7895a80
Compare
63d71f9 to
68bf62f
Compare
68bf62f to
1e36332
Compare
shtripat
reviewed
Mar 25, 2026
Contributor
|
@Praveenrajmani Can you please update the description why this is needed? I guess it's being used in AIStor code to send out alerts? |
Contributor
|
Honestly it seems overengineered that each alert type must have its own data structure. I know you can't extract specific values that easily, but honestly I don't see a need in 99% of cases. |
…nd storage capacity Extends the alerting system with four new AlertType constants and their corresponding detail structs: ConfigMismatchDetails (peer address, mismatch type, env/args/endpoint diffs), ErasureSetHealthDetails (drive counts, write quorum, condition), KMSUnavailableDetails (KMS type), and StorageCapacityDetails (free/total bytes and percentage).
Contributor
Author
|
Yeah, agree @klauspost we dont want individual types. Have simplified it now. PTAL. |
dhananjaykrutika
approved these changes
Apr 1, 2026
csumisha
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a new GetAlerts admin API (POST /admin/alerts) that streams alert events from the MinIO server as newline-delimited JSON, using Go 1.23's iter.Seq2 for idiomatic range-over-function iteration.
New types:
Alert types and their detail structs:
Also adds AlertInternalSubSys, AlertWebhookSubSys, and AlertKafkaSubSys subsystem constants to parse-config.go for alert routing configuration.